<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var taskId = window.dialogArguments;
var gettaskUrl = "/task/get/";
var edittaskUrl = "/task/edit/";
$(document).ready(function() {
	$.ajax({
		   type: "GET",
		   url: gettaskUrl,
		   data: "taskId=" + taskId,
		   dataType: "json",
		   success: function(data) {
			   if(data.code > 0) {
				   var result = data.result;
				   $("#taskId").html(result.taskId);
				   $("#deployId").html(result.deployId);
				   $("#name").html('"'+result.name+'"');				   $("#desc").html('"'+result.desc+'"');				   $("#level").html(result.level);				   $("#catalog").html(result.catalog);				   $("#type").html(result.type);				   $("#dests").html(result.dests);				   $("#compaignId").html(result.compaignId);				   $("#postTaskId").html(result.postTaskId);				   $("#startTalk").html(result.startTalk);				   $("#endTalk").html(result.endTalk);				   $("#deduct").html(result.deduct);				   $("#reward").html(result.reward);				   				   
			   }else {
				   errDialog(data.message);
			   }
		   }
	});
});

</script>
<body>
<div class="json">
{<br/>
<span class="jsonkey">taskId:</span><span id="taskId"></span>,<br/>
<span class="jsonkey">deployId:</span><span id="deployId"></span>,<br/>
<span class="jsonkey">name:</span><span id="name" class="jsonvalue"></span>,<br/>
<span class="jsonkey">desc:</span><span id="desc" class="jsonvalue"></span>,<br/>
<span class="jsonkey">level:</span><span id="level" class="jsonvalue"></span>,<br/>
<span class="jsonkey">catalog:</span><span id="catalog" class="jsonvalue"></span>,<br/>
<span class="jsonkey">type:</span><span id="type" class="jsonvalue"></span>,<br/>
<span class="jsonkey">dests:</span><span id="dests" class="jsonvalue"></span>,<br/>
<span class="jsonkey">compaignId:</span><span id="compaignId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">postTaskId:</span><span id="postTaskId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">startTalk:</span><span id="startTalk" class="jsonvalue"></span>,<br/>
<span class="jsonkey">endTalk:</span><span id="endTalk" class="jsonvalue"></span>,<br/>
<span class="jsonkey">deduct:</span><span id="deduct" class="jsonvalue"></span>,<br/>
<span class="jsonkey">reward:</span><span id="reward" class="jsonvalue"></span><br/>
</br>
}
</div>
</body>